<div class="col-lg-12">

	<div class="portlet">
    <div class="portlet-title">
        <div class="caption">
            <i class="fa fa-plus"></i><?= isset($this->data[$als]['id']) ? 'Sửa' : 'Thêm mới'; ?>
        </div>
    </div>


	<div class="portlet-body form">
		<?php echo $this->Form->create($als, array('class' => 'form-horizontal', 'type' => 'file'));?>
		<?php echo $this->Form->hidden($als.'.target_id', array('value' => $target_id) )?>
		<div class="portlet-body">
			<div class="form-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">Hình ảnh</label>
					<div class="col-sm-9">
						<div class="item row mb10 clearfix">
							<div class="col-sm-5"><input type="file" class="form-control" name="data[<?= $als ?>][images][]"/></div>
							<div class="col-sm-7">
								<a href="#" class="btn btn-line btn-primary add"><i class="fa fa-plus icon-only"></i></a>
								<a href="#" class="btn btn-line btn-danger del hide"><i class="fa fa-trash-o icon-only"></i></a>
							</div>
						</div>
					</div>
				</div>

			</div>
			<div class="form-actions fluid">
				<div class="col-md-offset-3 col-md-9">
					<button type="submit" class="btn btn-success"><?= __('Lưu') ?></button>
					<a href="<?= $this->webroot.'admin/products/index/' . $category_id?>" class="btn btn-default">Hủy bỏ</a>
				</div>
			</div>
		</div>
		<?php echo $this->Form->end( ); ?>
	</div><!-- End protet -->

</div>
